package com.hxzy.controller.admin.mapstruct;

import com.hxzy.controller.admin.dictdata.req.DictDataAddReq;
import com.hxzy.controller.admin.dictdata.req.DictDataEditReq;
import com.hxzy.controller.admin.dictdata.resp.DictDataResp;
import com.hxzy.entity.SysDictData;
import com.hxzy.entity.SysDictType;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Desc 描述
 * @Author: admin
 * @Date: 2023/07/03/16:10
 */
@Mapper
public interface DictDataConvert {
    DictDataConvert INSTANCE= Mappers.getMapper(DictDataConvert.class);

    List<DictDataResp>  convert(List<SysDictData> list);

    SysDictData convert(DictDataAddReq req);

    SysDictData convert(DictDataEditReq req);

    DictDataResp convert(SysDictData entity);
}
